package com.example.pojo;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
@TableName("UserInfo")
public class UserInfo {//user_info
      @TableId(value = "uid")
      private Integer id;
      private String username;
      //解决前端传String值 给后端的controller的Date参数
//      @DateTimeFormat(pattern = "yyyy-MM-dd")
      @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
      private Date birthday;

      private String sex;
      private String address;
      private Integer money;
      private String password;

      @TableLogic
      private Integer deleted;

      @Version
      private Integer version;

      @TableField(fill = FieldFill.INSERT)
      private Date createTime;
}